package br.com.weberp.datamanager{
	import mx.collections.ArrayCollection;
	
	public class DataManager{
		
		private var _records:ArrayCollection;
		private var _editedRecords:ArrayCollection;
		private var _observers:ArrayCollection;
		private var _criteriaProviders:ArrayCollection;
		private var _fieldBinders:FieldBinderManager;
		
		public function DataManager(){
			initializeDataManager();
		}
		
		private function initializeDataManager():void{
			_records = new ArrayCollection();
			_editedRecords = new ArrayCollection();
			_observers = new ArrayCollection();
			_criteriaProviders = new ArrayCollection();
			_fieldBinders = new FieldBinderManager();
		}
		
		public function addObserver(observer:IDMObserver):void{
			
		}
		
		public function addFieldBinder(binderr:IDMFieldBinder):void{
			
		}
		
		public function addCriteriaProvider(criteriaProvider:IDMCriteriaProvider):void{
			
		}

	}
}

import flash.utils.Dictionary;
import mx.collections.ArrayCollection;
import br.com.weberp.datamanager.IDMFieldBinder;
	
class FieldBinderManager{
	
	private var _fieldBinders:Dictionary;

	public function FieldBinderManager(){
	}

	public function addFieldBinder(fieldBinder:IDMFieldBinder):void{
	}

	public function removeFieldBinders(fieldID:String):void{
	}

	public function getFieldBinders():ArrayCollection{
		return null;
	}

	public function iterateFieldBinders(fieldID:String, callBack:Function):void{
	}
}
